﻿using System.Runtime.Serialization;
namespace PH.Model.Standards
{
    [DataContract]
    public class SubjectModel:MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model]
        [DataMember]
        public byte Category { get; set; }
        [Model]
        [DataMember]
        public string SubjectName { get; set; }
        [Model]
        [DataMember]
        public string Unit { get; set; }
        [Model]
        [DataMember]
        public string AdapterGrade { get; set; }
        [Model]
        [DataMember]
        public byte Sex { get; set; }
        [Model]
        [DataMember]
        public decimal Min { get; set; }
        [Model]
        [DataMember]
        public decimal Max { get; set; }

        #region Help
        #endregion
    }

    [DataContract]
    public class SubjectCollection : ModelCollectionBase<SubjectModel> { }

    public class SubjectQuery : QueryBase
    {
        public int GradeCode { get; set; }

        public byte[] Category { get; set; }
    }
}
